package my.test.factoryMethodPattern.someFactory;

import my.test.factoryMethodPattern.Human;
import my.test.factoryMethodPattern.YellowHunam;

public class NvWa {

    public static void main(String[] args) {
        Human whiteHuman = (new WhiteHumanFactory()).createHuman();
        whiteHuman.talk();
        whiteHuman.getColor();

        Human blackHuman = (new BlackHumanFactory()).createHuman();
        blackHuman.getColor();
        blackHuman.talk();

        Human yellowHuman = (new YellowFactory()).createHuman();
        yellowHuman.getColor();
        yellowHuman.talk();
    }
}
